#10.6构造连通图并判断是否为连通图
import _00GraphFuc as gf

m,n=20,15
[V,E]=gf.creategraph(m,n)
tv=gf.isconnectedgraph(V,E)
gf.drawgraph(E)
print(V)
print(E)
print(tv)
(u,v)= list(E)[0]
V0={u,v}
E0={(u,v)}
[Vc,Ec]=gf.connectedgraph(V,E,V0,E0)
tv=gf.isconnectedgraph(Vc,Ec)
gf.drawgraph(Ec)
print(Vc)
print(Ec)
print(tv)